package com.quartertone.summingcells;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.drawable.ShapeDrawable;
import android.graphics.drawable.shapes.RectShape;
import android.view.View;

public class DrawBox extends View {
	private ShapeDrawable mDrawable;

	public DrawBox (Context context, int x, int y) {
		super(context);

		int size = 20;
 
		mDrawable = new ShapeDrawable(new RectShape());
		mDrawable.getPaint().setColor(0xff74AC23);
		mDrawable.setBounds(x, y, x + size, y + size);
	}

	protected void onDraw(Canvas canvas) {
		mDrawable.draw(canvas);
	}
}
